import request from '@/utils/request'

// 显示所有护理类别
export function getNursingCategory() {
  return request({
    url: '/nursingCategory/selectAll',
    method: 'get'
  })
}

// 显示所有护理记录分页
export function getAllNursing(data) {
  return request({
    url: '/nursing/selectAll',
    method: 'post',
    data
  })
}

// 添加一条护理
export function add(data) {
  return request({
    url: '/nursing/add',
    method: 'post',
    data
  })
}

// 修改一条护理
export function update(data) {
  return request({
    url: '/nursing/update',
    method: 'post',
    data
  })
}
